
import { useState } from "react";
import Heand from "../component/heand";
import './index.css'
import { Input, Button, Cascader } from 'antd';
import axios from "axios";
const App = () => {

    const [textone, setTextone] = useState('')
    const [texttwo, setTexttwo] = useState('')
    const [textthree, setTextthree] = useState('')

    const handleNameChangeone = (event) => {
        setTextone(event.target.value)
    }
    const handleNameChangetwo = (event) => {
        setTexttwo(event.target.value)
    }
    const handleNameChangethree = (event) => {
        setTextthree(event.target.value)
    }

    const handxiugai=()=>{
        axios.put('')
    }

    return (
        <div><Heand />
            <div className="logindiv">
                <div className="pctext">
                    <label htmlFor="name">标题一：</label>
                    <Input className="xqinp" type="text" id="name" value={textone} onChange={handleNameChangeone} />
                </div>
                <div className="pctext">
                    <label htmlFor="name">标题二：</label>
                    <Input className="xqinp" type="text" id="name" value={texttwo} onChange={handleNameChangetwo} />
                </div>
                <div className="pctext">
                    <label htmlFor="name">标题三：</label>
                    <Input className="xqinp" type="text" id="name" value={textthree} onChange={handleNameChangethree} />
                </div>
                <div>
                    <Button onChange={handxiugai}>修改简介内容</Button>
                </div>

            </div>


        </div>
    )
}

export default App